package com.cstz.ydshop.common.controller;

import com.cstz.hb.manage.domain.AppUser;
import org.springframework.stereotype.Controller;

import com.cstz.ydshop.common.utils.ShiroUtils;
import com.cstz.ydshop.system.domain.UserDO;

@Controller
public class BaseController {
	public AppUser getUser() {
		return ShiroUtils.getUser();
	}

	public Long getUserId() {
		return getUser().getId();
	}

	public String getUsername() {
		return getUser().getCnName();
	}
}